package com.example.module_web.adapter;

import com.example.module_web.R;
import com.example.module_web.beans.XiuHuXL;
import com.example.module_web.viewholder.BindViewHolder;

import java.util.List;

/**
 * Created by ASUS on 2018/3/18.
 */

public class XiuHuXLAdapter extends FormBAdapter<XiuHuXL> {

    public XiuHuXLAdapter(int layoutRes, List<XiuHuXL> beans) {
        super(layoutRes, beans);
    }

    @Override
    protected void onBind(BindViewHolder holder, int position, XiuHuXL xiuHuXL) {
        holder.setText(R.id.item_form_num,String.valueOf(xiuHuXL.getNumber()))
                .setText(R.id.item_form_date,xiuHuXL.getDate())
                .setText(R.id.item_form_fangke,String.valueOf(xiuHuXL.getFangke()))
                .setText(R.id.item_form_liulan,String.valueOf(xiuHuXL.getLiulan()))
                .setText(R.id.item_form_jiagou,String.valueOf(xiuHuXL.getJiagou()))
                .setText(R.id.item_form_shoucang,String.valueOf(xiuHuXL.getShoucang()))
                .setText(R.id.item_form_tingliu,String.valueOf(xiuHuXL.getTingliu()));
    }
}
